import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
// 首页
import index from '@/view/index'
//城市
import city from '@/view/city/cityhome'

Vue.use(Router)


export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    // 首页
    {
      path: '/index',
      name: 'index',
      component:index
    },
    // 首页
    {
      path: '/city',
      name: 'city',
      component:city
    },
  ]
})
